package com.numbfish.ch_05.test9.src.mycallable ;

import java.util.concurrent.Callable;

public class MyCallable implements Callable<String> {

	@Override
	public String call() throws Exception {
		int i = 0;
		while (i == 0) {
			if (Thread.currentThread().isInterrupted()) {
				throw new InterruptedException();
			}
			System.out.println("正在运行中");
		}
		return "我的年龄是100";
	}

}